<include file="Public:header"/>
<body class="J_scroll_fixed">
<div class="wrap jj">
    <include file="Public:nav"/>
  <div class="common-form">
    <form method="post" class="J_ajaxForm" action="{:U('Menu/edit')}">
      <div class="h_a">菜单信息</div>
      <div class="table_full">
        <table cellpadding="0" cellspacing="0" class="table_form" width="100%">
          <input type="hidden" name="id" value="{$id}" />
          <tbody>
            <tr>
              <th width="100">上级:</th>
              <td><select name="parentid">
                  <option value="0">作为一级菜单</option>
                     {$select_categorys}
                </select></td>
            </tr>
            <tr>
              <th>名称:</th>
              <td><input type="text" class="input" name="name" value="{$data.name}"></td>
            </tr>
            <tr>
              <th>模块:</th>
              <td><input type="text" class="input" name="app" id="app" value="{$data.app}"></td>
            </tr>
            <tr>
              <th>控制器:</th>
              <td><input type="text" class="input" name="controller" id="controller" value="{$data.controller}"></td>
            </tr>
            <tr>
              <th>方法:</th>
              <td><input type="text" class="input" name="action" id="action" value="{$data.action}"></td>
            </tr>
            <tr>
              <th>参数:</th>
              <td><input type="text" class="input length_5" name="parameter" value="{$data.parameter}">
                例:groupid=1&amp;type=2</td>
            </tr>
            <tr>
              <th>备注:</th>
              <td><textarea name="remark" rows="5" cols="57">{$data.remark}</textarea></td>
            </tr>
            <tr>
              <th>状态:</th>
              <td><select name="status">
                  <option value="1" <eq name="data.status" value="1">selected</eq>>显示</option>
                  <option value="0" <eq name="data.status" value="0">selected</eq>>不显示</option>
                </select>需要明显不确定的操作时建议设置为不显示，例如：删除，修改等</td>
            </tr>
            <tr>
              <th>类型:</th>
              <td><select name="type">
                  <option value="1" <eq name="data.type" value="1">selected</eq>>权限认证+菜单</option>
                   <option value="0" <eq name="data.type" value="0">selected</eq>>只作为菜单</option>
                </select>
                注意：“权限认证+菜单”表示加入后台权限管理，纯粹是菜单项请不要选择此项。</td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="">
        <div class="btn_wrap_pd">
          <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">修改</button>
          <input type="hidden" name="id" value="{$data.id}" />
        </div>
      </div>
    </form>
  </div>
</div>
<script src="__JS__/common.js"></script>
</body>
</html>